ExamPlay Light Logo
Conectare

Computer Science for IGCSE & O level - Programming (Section 11 - No. 27)

In the Totaling example, how is the variable 'TotalWeight' updated?
TotalWeight = Weight
TotalWeight = TotalWeight - Weight
TotalWeight = TotalWeight + Weight
TotalWeight = Weight - TotalWeight

Explicaţie

TotalWeight accumulates the sum with each iteration.

Comentarii (0)

Autentifică-te pentru a comenta
Publicitate
BrainBehindX Inc Logo
©2026; Cu sprijinul BrainBehindX Inc